//
//  GuestCouponCommentTableViewCell.m
//  penzer
//
//  Created by 还带大道 on 2018/11/10.
//  Copyright © 2018年 caiyc. All rights reserved.
//

#import "GuestCouponCommentTableViewCell.h"
#import "XLPhotoBrowser.h"

@interface GuestCouponCommentTableViewCell()
@property (weak, nonatomic) IBOutlet UIImageView *head;
@property (weak, nonatomic) IBOutlet UILabel *name;
@property (weak, nonatomic) IBOutlet UILabel *time;
@property (weak, nonatomic) IBOutlet UIImageView *star1;
@property (weak, nonatomic) IBOutlet UIImageView *star2;
@property (weak, nonatomic) IBOutlet UIImageView *star3;
@property (weak, nonatomic) IBOutlet UIImageView *star4;
@property (weak, nonatomic) IBOutlet UIImageView *star5;
@property (weak, nonatomic) IBOutlet UILabel *score;
@property (weak, nonatomic) IBOutlet UILabel *contentL;
@property (weak, nonatomic) IBOutlet UIView *picV;
@property (weak, nonatomic) IBOutlet UIButton *pic1;
@property (weak, nonatomic) IBOutlet UIButton *pic2;
@property (weak, nonatomic) IBOutlet UIButton *pic3;
@property (weak, nonatomic) IBOutlet UILabel *picCount;

@end

@implementation GuestCouponCommentTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.picV.backgroundColor = [UIColor whiteColor];
    self.picCount.text = [NSString stringWithFormat:@"%d张图片",3];
    _pic1.tag = 0;
    _pic2.tag = 1;
    _pic3.tag = 2;
}

- (IBAction)onClickPic:(UIButton *)btn{
    
    NSArray *arr = @[[UIImage imageNamed:@"icon_goods"],[UIImage imageNamed:@"icon_goods"],[UIImage imageNamed:@"icon_goods"]];
    
//    //基本样式（不可保存）
    [XLPhotoBrowser showPhotoBrowserWithImages:arr currentImageIndex:btn.tag];
}


@end
